package com.quasar.hpatient.model.litePalmodel;

import com.bigkoo.pickerview.model.IPickerViewData;

import org.litepal.crud.DataSupport;

/**
 * name : lishuai
 * time : 2017/9/26
 * title: 地理信息表
 */

public class Aerainfodb extends DataSupport implements IPickerViewData {

    private int Id;
    private int primaryid;//信息编号ID
    private String code;//地域邮编号码
    private String name;//地域名称
    private int pid;//上级地域编号
    private int level;//地域水平
    private int orders;//显示顺序
    private String Name_en;//英文名称（拼音）
    private String Short_name_en;//简写名称

    public Aerainfodb(int id, int primaryid, String code, String name, int pid, int level, int orders, String name_en, String short_name_en) {
        Id = id;
        this.primaryid = primaryid;
        this.code = code;
        this.name = name;
        this.pid = pid;
        this.level = level;
        this.orders = orders;
        Name_en = name_en;
        Short_name_en = short_name_en;
    }

    public int getId() {
        return Id;
    }

    public void setId(int id) {
        Id = id;
    }

    public int getPrimary() {
        return primaryid;
    }

    public void setPrimary(int primaryid) {
        this.primaryid = primaryid;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public int getOrders() {
        return orders;
    }

    public void setOrders(int orders) {
        this.orders = orders;
    }

    public String getName_en() {
        return Name_en;
    }

    public void setName_en(String name_en) {
        Name_en = name_en;
    }

    public String getShort_name_en() {
        return Short_name_en;
    }

    public void setShort_name_en(String short_name_en) {
        Short_name_en = short_name_en;
    }

    @Override
    public String getPickerViewText() {
        return getName();
    }
}
